package cn.exrick.sso.service;

import cn.exrick.common.pojo.Result;
import cn.exrick.manager.pojo.TbMember;

public interface MemberService {


    TbMember getMemberById(Long id);

    /**
     * 忘记密码
     * @param email
     * @param password
     * @return
     */
    Result<Object> changePassword(String email, String password);

    /**
     * 个人中心修改密码
     * @param oldPassword
     * @param password
     * @param memberId
     * @return
     */
    Result<Object> modifyPassword(String oldPassword, String password,Long memberId);

    /**
     * 更新个人信息
     * @param tbMember
     * @return
     */
    Result<Object> updateMemeber(TbMember tbMember);
}
